<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="/JavaWeb1907/loginServlet?method=login" method="post">
		用户名：<input type="text" name="name"/><br/>
		密码：<input type="text" name="password"/><br/>
		验证码：<input type="text" name="checkCode">
		<img id="codeImgId" src="/JavaWeb1907/checkImg" onclick="refreshCode()"><br/>
		<input type="submit" value="登录"/>
	</form>
	<script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		function refreshCode() {
			$("#codeImgId").attr("src", "<%=request.getContextPath()%>/checkImg?" + Math.random());
		}
	</script>
</body>
</html>